<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<title>菜单</title>
<%@ include file="/pages/common/base/Base.jsp"%>
<link rel="stylesheet" href="/web2019/layui/css/layui.css" media="all">
<link rel="stylesheet" href="/web2019/css/ha.css" media="all">
<script src="/web2019/layui/layui.js"></script>
<script src="/web2019/js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="/${res.contextPath}/js/user/workRecord.js?version=${res.version}"></script>
<script>
	$(function(){
		WorkRecord.initPage("${res.contextPath}");	
	});
  </script>
</head>
</head>
<script>
	(function(doc, win) {
		var docEl = doc.documentElement, resizeEvt = 'orientationchange' in window ? 'orientationchange'
				: 'resize', recalc = function() {
			var clientWidth = docEl.clientWidth;
			if (!clientWidth)
				return;
			docEl.style.fontSize = 50 * (clientWidth / 375) + 'px';
		};
		if (!doc.addEventListener)
			return;
		win.addEventListener(resizeEvt, recalc, false);
		doc.addEventListener('DOMContentLoaded', recalc, false);
	})(document, window)
</script>
<body>
<header class="header">
<div class="xg-cells">
        <div class="xg-cell title" id="pageTitle">添加每天日志</div>
        <div class="title" id="userName"><shiro:principal property="realName"/></div>
</div>
</header>
<div class="placeholder-20"></div>
	<form class="layui-form">
	<div class="layui-form-item">
		<div class="layui-inline">
			<label class="layui-form-label">日期选择</label>
			<div class="layui-input-block">
				<input type="text" name="date" id="date" autocomplete="off"
					class="layui-input">
			</div>
		</div>
		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">工作</label>
			<div class="layui-input-block">
				<textarea placeholder="请输入内容" name="description" class="layui-textarea"></textarea>
			</div>
		</div>
		  <div class="layui-form-item">
			    <label class="layui-form-label">记录生活</label>
			    <div class="layui-input-block">
			      <input type="checkbox" name="close" lay-skin="switch"  lay-filter="switchTest" lay-text="ON|OFF">
			    </div>
		  </div>
		  <div style="display:none" id="life">
		  <div class="layui-form-item">
		    <label class="layui-form-label">早睡</label>
		    <div class="layui-input-block">
		      <input type="radio" name="sleep" value="1" title="是" >
		      <input type="radio" name="sleep" value="0" title="否">
		    </div>
		  </div>
  		  <div class="layui-form-item">
		    <label class="layui-form-label">早起</label>
		    <div class="layui-input-block">
		      <input type="radio" name="getUp" value="1" title="是" >
		      <input type="radio" name="getUp" value="0" title="否">
		    </div>
		  </div>
		   <div class="layui-form-item">
		    <label class="layui-form-label">健身30min</label>
		    <div class="layui-input-block">
		      <input type="radio" name="exercise" value="1" title="是" >
		      <input type="radio" name="exercise" value="0" title="否">
		    </div>
		  </div>
		  <div class="layui-form-item">
		    <label class="layui-form-label">学习30min</label>
		    <div class="layui-input-block">
		      <input type="radio" name="study" value="1" title="是" >
		      <input type="radio" name="study" value="0" title="否">
		    </div>
		  </div>
		  <div class="layui-form-item layui-form-text">
			<label class="layui-form-label">备注</label>
				<div class="layui-input-block">
					<textarea placeholder="请输入内容" name="remark" class="layui-textarea"></textarea>
				</div>
			</div>
			</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="submit">立即提交</button>
			</div>
		</div>
	</div>
	</form>
</body>
</html>

